import request from '@/utils/request'

// 扫码后获得条码信息
export function GetDyeMainMaterial(Barcode) {
  return request({
    url: '/erp/Dyeing/GetDyeMainMaterial',
    method: 'get',
    params: { Barcode },
  })
}

// 新增流程材料用量
export function InsertDyeMain(data) {
  return request({
    url: '/erp/Dyeing/InsertDyeMain',
    method: 'post',
    data,
  })
}
// 追加材料用量
export function addDyeMain(data) {
  return request({
    url: '/erp/Dyeing/AddDyeMain',
    method: 'post',
    data,
  })
}

// 获得产品分类
export function getProductClassList(data) {
  console.log(data)
  return request({
    // url: '/api/Query/GetCodeList',
    url: '/api/Doc/getList?tabname=' + data,
    method: 'get',
  })
}
// 获得指定产品分类下的所有产品资料
export function getProductList(data) {
  return request({
    url: '/api/Query/showAllFilter',
    method: 'post',
    data,
  })
}
